﻿
using System ;
using System.Collections.Generic ;


namespace MskEdit.Dxf.Model
{

    public class DxfSymbolTableEntry
    {
        private static HashSet<int> commonGroupCodes_ = new HashSet<int> { -1, 0, 5, 100, 102, 105, 330, 360 } ;
        
        static DxfSymbolTableEntry() {
//            groupCodes_.Add() ;
        }

        string [] allLines_ ;
        
        private string  tableName_ ;
        private string  handle_ ;
        private string  ownerPointer_ ;
        private string  subclassMarker_ ;
        private short?  maxEntries_ ;


        public DxfSymbolTableEntry( string [] allLines ) {
        
            allLines_ = allLines ;
            
            tableName_          = "" ;
            handle_             = "" ;
            ownerPointer_       = "" ;
            subclassMarker_     = "" ;
            maxEntries_         = null ;
        }


        public override String ToString() {
            return 
                tableName_ + " " +
                handle_ + " " +
                ownerPointer_ + " " +
                subclassMarker_ + " " +
                maxEntries_.ToString() + " " ; 
        }


        public string TableName {
            get { return tableName_ ; }
            set { tableName_ = value ; }
        }


        public string Handle {
            get { return handle_ ; }
            set { handle_ = value ; }
        }


        public string OwnerPointer {
            get { return ownerPointer_ ; }
            set { ownerPointer_ = value ; }
        }


        public string SubclassMarker {
            get { return subclassMarker_ ; }
            set { subclassMarker_ = value ; }
        }


        public short? MaxEntries {
            get { return maxEntries_ ; }
            set { maxEntries_ = value ; }
        }
        
///        

/*
        public string ItemType {
            get { return allLines_[itemTypeRange.Begin+1] ; }
            set { allLines_[itemTypeRange.Begin+1] = value ; }
        }
*/
    }
}
